473,484 Members | 1,739 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

HELP - JSCookMenu problem


I am trying (for first time) to get Yuan Heng's JSCookMenu to work.

I have placed "JSCookMenu.js" in the main web directory (ie. in
http://xyz.com/) , and created a folder called ThemeIE (ie.
http://xyz.com/ThemeIE/) to hold the image files, and the "theme.css" and
"theme.js" files.

I have edited "theme.js" script, and changed the first line to:-
var cmThemeIEBase = 'ThemeIE/';
(previously it referred to '/~heng/JSCookMenu/ThemeIE/')

(I've also tried the script with '/ThemeIE/' instead of 'ThemeIE/' - no
difference!)

Lastly I've created the following test.htm to check if it works - but I
ALWAYS get script error that "myMenu" is undefined.

Can anyone tell me what's wrong please? Better still, what I need to do to
code this correctly?

Thanks
-------------------

<html>
<head>
</head>

<body link="#000080" vlink="#800080" text="#FFFF00" bgcolor="#0000FF"
alink="#FF0000">
<DIV ID="MenuDefinition">
<SCRIPT LANGUAGE="text/javascript" SRC="JSCookMenu.js"></SCRIPT>

<LINK REL="stylesheet" HREF="ThemeIE/theme.css" TYPE="text/css">
<SCRIPT LANGUAGE="text/javascript" SRC="ThemeIE/theme.js"></SCRIPT>

<SCRIPT LANGUAGE="text/javascript">
<!-- var myMenu =
[
[null,'Home','www.yahoo.com','_top','Return to Home page',
[null,'Welcome','www.yahoo.com','_top','Return to Home page'],
[null,'Contact Us','home_contact.htm','_top','Contact information']
],
[null,'News','news_index.htm','detail','News pages',
[null,'News Index','news_index.htm','_top','Main news index'],
]
];
-->
</SCRIPT>

<DIV ID='myMenuID'></DIV>

<SCRIPT LANGUAGE="JavaScript"><!--
cmDraw ('myMenuID', myMenu, 'hbr', cmThemeIE, 'ThemeIE');
--></SCRIPT>

</DIV>

</body>

</html>
Aug 8 '05 #1
3 3104
Hi Richard,
<SCRIPT LANGUAGE="text/javascript" SRC="JSCookMenu.js"></SCRIPT>


Don't know if it changes anything, but the value for the langauge-attribute in a
script-Tag is "JavaScript" not "text/javascript" - that's the type-Attribute:

<script language="JavaScript" type="text/javascript" src="JSCookMenu.js">

Greetings,

Martin
Aug 8 '05 #2

"Martin Kurz" <in**@martinkurz.in-berlin.de> wrote in message
news:11*************@elch.in-berlin.de...
Hi Richard,
<SCRIPT LANGUAGE="text/javascript" SRC="JSCookMenu.js"></SCRIPT>


Don't know if it changes anything, but the value for the
langauge-attribute in a
script-Tag is "JavaScript" not "text/javascript" - that's the
type-Attribute:

<script language="JavaScript" type="text/javascript" src="JSCookMenu.js">


Hi

Changed that - no difference :-( ... exact same error.

Aug 8 '05 #3
Richard wrote:
"Martin Kurz" <in**@martinkurz.in-berlin.de> wrote in message
news:11*************@elch.in-berlin.de...
Hi Richard,

<SCRIPT LANGUAGE="text/javascript" SRC="JSCookMenu.js"></SCRIPT>


Don't know if it changes anything, but the value for the
langauge-attribute in a
script-Tag is "JavaScript" not "text/javascript" - that's the
type-Attribute:

<script language="JavaScript" type="text/javascript" src="JSCookMenu.js">

Hi

Changed that - no difference :-( ... exact same error.


Language is depreciated, type is required. It rarely makes any
difference but can cause very difficult to find problems in particular
circumstances - and it will make a validator squawk.

--
Rob
Aug 9 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
628
by: Mj23 | last post by:
I'm Italian and I'm sorry for my English!!!I'm new of this ns and so I don't know if my question is suitable. I have a problem: using the C++ language,the QT library and the OpenGL library realize...
0
1625
by: Prasanth U | last post by:
Hi All, We are facing a problem while integrating a HTML help file (chm version 1.x) to our windows .net application (C#). The help topic for the controls in the application are shown using the...
1
2056
by: Richard | last post by:
I have a framed page, with a 100 pixel deep header section. I've coded the JSCookMenu in that frame, but the drop downs get cut in half ..... ie. the drop downs only display within that frame and...
7
5340
by: Corepaul | last post by:
Missing Help Files When I enter "recordset" as the keyword and search the Visual Basic Help index, I get many topics of interest in the resulting list. But there isn't any information available...
23
3230
by: Jason | last post by:
Hi, I was wondering if any could point me to an example or give me ideas on how to dynamically create a form based on a database table? So, I would have a table designed to tell my application...
10
2816
by: Bharat | last post by:
Hi Folks, Suppose I have two link button on a page (say lnkBtn1 and lnkBtn2). On the click event of the lnkbtn1 I have to add a dynamically created control. And On the click event of the lnkBtn2 I...
1
1998
by: Tomasz Leskier | last post by:
I placed JSCookMenu near the applet and after expanding the menu, part of it is _below_ the applet. I tried setting z-index attribute and putting the menu in 'div'. No effect. Any solutions ? ...
16
2766
by: Rex | last post by:
Hi All - I have a question that I think MIGHT be of interest to a number of us developers. I am somewhat new to VIsual Studio 2005 but not new to VB. I am looking for ideas about quick and...
0
3173
by: Vinutha | last post by:
I have designed one xhtml page using frameset, where i have included 3 frames to make one page, ie. one for header, one for menuTree & one for body, This is my code, <!DOCTYPE html PUBLIC...
0
7078
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7100
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7136
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6804
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7163
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4524
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3042
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3035
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1350
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.